package com.asset.dispoal.file.head.service;

import com.asset.dispoal.file.head.api.HeadService;
import com.asset.dispoal.file.head.dto.HeadImgRequest;
import com.asset.dispoal.file.head.service.commom.SaveHeadCommand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.mhuang.pacebox.springboot.protocol.Result;

/**
 * @author qr
 * @date 2022/3/16$
 */
@Service
public class HeadServiceImpl implements HeadService {


    @Autowired
    SaveHeadCommand saveHeadCommand;


    @Override
    public Result saveHead(HeadImgRequest headImgRequest) {
        return saveHeadCommand.execute(headImgRequest);
    }

}
